import * as vscode from 'vscode';
import { BLPEditorProvider } from './BLPEditorProvider';
import { cjHover } from './cjHover';
import { MDXEditorProvider } from './MDXEditorProvide';

export function activate(context: vscode.ExtensionContext) {

	console.log('Congratulations, your extension "diy-wc3-vs" is now active!');
	// cj函数注释
	let disposable = vscode.commands.registerCommand('diy-wc3-vs.start', () => {
		vscode.window.showInformationMessage('diy-wc3启动成功');
	});

	context.subscriptions.push(disposable);
	context.subscriptions.push(vscode.languages.registerHoverProvider('lua', {
		provideHover:cjHover
	}));

	// BLP预览
	context.subscriptions.push(BLPEditorProvider.register(context));

	// MDX预览
	context.subscriptions.push(MDXEditorProvider.register(context));

}

// this method is called when your extension is deactivated
export function deactivate() {}
